<?xml version="1.0" encoding="UTF-8"?><d:tdl xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://www.backbase.com/2006/btl" xmlns:bb="http://www.backbase.com/2006/client"  xmlns:d="http://www.backbase.com/2006/tdl" >

	<d:namespace name="http://www.backbase.com/2006/btl">

		<d:uses element="visualElement" src="../visualElement/visualElement.xml"/>

		<d:element name="disableElement" extends="b:visualElement" abstract="true">
			
			<d:resource type="text/css"><![CDATA[
				.btl-disabled,
				.btl-disabled * {
					cursor: default !important;
				}
			]]></d:resource>
			<d:attribute name="disabled">
				
				<d:mapper type="text/javascript"><![CDATA[
					if(btl.isTrueValue(name, value))
						this.disableView();
					else
						this.enableView();
				]]></d:mapper>
				<d:changer type="text/javascript"><![CDATA[
					bb.command.fireEvent(this, btl.isTrueValue(name, value) ? 'disable' : 'enable', false, false);
				]]></d:changer>
			</d:attribute>

			<d:property name="disabled">
				<d:setter type="text/javascript"><![CDATA[
					if(value)
						this.setAttribute('disabled', 'true');
					else
						this.removeAttribute('disabled');
				]]></d:setter>
				<d:getter type="text/javascript"><![CDATA[
					return btl.isTrueValue('disabled', this.modelNode.getAttribute('disabled'));
				]]></d:getter>
			</d:property>

			<d:method name="disableView">
				
				<d:body type="text/javascript"><![CDATA[
					// Generic disabled visualization
					bb.html.addClass(this.viewNode, 'btl-disabled');
				]]></d:body>
			</d:method>

			<d:method name="enableView">
				
				<d:body type="text/javascript"><![CDATA[
					// Remove generic disabled visualization
					bb.html.removeClass(this.viewNode, 'btl-disabled');
				]]></d:body>
			</d:method>
		</d:element>
	</d:namespace>
</d:tdl>